<!DOCTYPE html>
<html lang="en">
    
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <Label for="InputBox" accesskey="N">姓名</Label><input id="InputBox" type="text">
    <input type="date">
    <input type="range">
    <input type="color" name="" id="">
    <input type="tel" name="" id="">
    <input list="browsers">
        <datalist id="browsers">
            <option value="Internet Explorer">
            <option value="Firefox">
            <option value="Chrome">
            <option value="Opera">
        </datalist>


    <script>
        function deepclone(obj){
            let objclone=Array.isArray(obj)?[]:{}
            for(key in obj){
               // if(obj.hasOwnProperty(key)){
                    if(obj[key]&&typeof obj[key]==="object"){
                        objclone[key]=deepclone(obj[key])
                    }else{
                        objclone[key]=obj[key]
                    }
                //}
            }
            return objclone
        }
        function fn2(){
	        var a=new Promise(function(resolve,reject){
		        setTimeout(function(){
			        console.log(777);
			        resolve("呵呵")
		        },1000)
	        })
	        return a
        }
        async function test(){
            let a= await fn2()
            console.log("执行",a)
        }
        // fn2().then((res)=>{
        //     console.log(res)
        // })
            test()

    </script>
</body>

</html>